#!/usr/bin/env python
# encoding: utf-8

"""
@version: ??
@author: windblue
@contact: q418584383@gmail.com
@time: 2017/11/12 13:18
"""
from urllib import request

class HtmlDownloader(object):
    def download(self, url):
        if url is None:
            return None
        resp = request.urlopen(url)
        if resp.getcode() != 200:
            return None
        return resp.read()